//
//  RequestAppheartApi.m
//  HHNMobileCore
//
//  Created by 余海华 on 16/5/4.
//  Copyright © 2016年 huhmf. All rights reserved.
//

#import "RequestAppheartApi.h"

@implementation RequestAppheartApi
-(YTKRequestMethod)requestMethod
{
    return YTKRequestMethodPOST;
}

-(NSString *)requestUrl
{
    return @"/common/heartbeat.do";
}
-(NSInteger)cacheTimeInSeconds
{
    return -60*1;//为负数 不启用缓存
}

-(NSDictionary *)requestHeaderFieldValueDictionary
{
    NSMutableURLRequest *request_M=(NSMutableURLRequest *)[super requestTask].currentRequest;
    NSString *strUrl=[NSString stringWithFormat:@"%@%@",appBaseURL,[self requestUrl]];
    NSDictionary *dict=[[HHNUtility sharedHHNInstance] setHttpHeaderWithUrl:strUrl Request:request_M];
    
    return dict;
}

-(long long)cacheVersion
{
    return  1;
}
@end
